package com.qianfeng.entity;

/**
 * 映射数据库用户角色中间表
 */
public class UserRole {
    private Integer urId;//主键
    private Integer userId;//关联用户Id;
    private Integer roleId;//关联角色表Id;

    @Override
    public String toString() {
        return "UserRole{" +
                "urId=" + urId +
                ", userId=" + userId +
                ", roleId=" + roleId +
                ", user=" + user +
                ", role=" + role +
                '}';
    }

    private User user;
    private Role role;

    public Integer getUrId() {
        return urId;
    }

    public void setUrId(Integer urId) {
        this.urId = urId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public UserRole() {
    }
}
